import torch 
import torchvision

# 加载模型方式2 
model = torchvision.models.vgg16(weights=None)
model.load_state_dict(torch.load("./202410/模型的保存与加载/vgg16_2.pth", weights_only=True))
print(model)
